package com.finance.config.exception;

import lombok.Getter;

/**
 * @author 邓天天
 * @date 2021/4/26 21:17
 * 自定义的HTTP异常 请求网络是发生的异常
 */
@Getter
public class HttpException extends RuntimeException{
    private final String url;
    private final String body;
    private final String type;

    public HttpException(String url, String body, String type, String message) {
        super(message);
        this.url = url;
        this.body = body;
        this.type = type;
    }
}
